package com.ruoyi.system.schedule;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public interface ScheduleTask {

    /**
     * 定时执行程序
     * @return
     */
    Runnable doTask();
    /**
     * 定时开关程序
     * @return
     */
    void start();

    void stop();

    Date startDate();

    String getOrderId();

    Boolean tempFlag();

    TimingTask timingTask();
}
